package com.liuyk.mvp.p;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwner;
import android.content.Context;
import android.widget.Toast;

public abstract class BasePresenter implements IPresenter {
    private final Context mContext;

    public BasePresenter(Context context) {
        mContext = context;
    }

    @Override
    public void onCreate(LifecycleOwner owner) {

    }

    @Override
    public void onDestroy(LifecycleOwner owner) {
        Toast.makeText(mContext, "observerDestroy", Toast.LENGTH_LONG).show();
    }

    @Override
    public void onLifecycleChanged(LifecycleOwner owner, Lifecycle.Event event) {

    }
}
